//
//  CeoYouShenPiVC.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/9/12.
//  Copyright © 2017年 金橙云. All rights reserved.
//

#import "CeoYouShenPiVC.h"

#import "ZhuShenPiVC.h"
#import "BussinessShenOneVC.h"
#import "PakingShenOneVC.h"
#import "StoreRoomShenOneVC.h"

@interface CeoYouShenPiVC ()

@end

@implementation CeoYouShenPiVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"优惠政策审批";
    self.view.backgroundColor = BgColor;
    
    ZhuShenPiVC*zhuShouVC = [[ZhuShenPiVC alloc] init];
    zhuShouVC.title = @"主售房源";
    
    BussinessShenOneVC *busVC = [[BussinessShenOneVC alloc] init];
    busVC.title = @" 商业房源";
    
    PakingShenOneVC *pakingVC = [[PakingShenOneVC alloc] init];
    pakingVC.title = @"车位";
    
    StoreRoomShenOneVC *roomVC = [[StoreRoomShenOneVC alloc] init];
    roomVC.title = @"储藏室";
    
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, LL_StatusBarAndNavigationBarHeight, B_WIDTH, 1)];
    [self.view addSubview:view];
    
    NSArray *subViewControllers = @[zhuShouVC,busVC,pakingVC,roomVC];
    DCNavTabBarController *tabBarVC = [[DCNavTabBarController alloc]initWithSubViewControllers:subViewControllers];
    tabBarVC.view.frame = CGRectMake(0, LL_NavigationBarHeight, B_WIDTH, 44);
    [self.view addSubview:tabBarVC.view];
    [self addChildViewController:tabBarVC];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
